// (C) Szymon Piechowicz, February 2012

#ifndef __ADC_MANAGER_H__
#define __ADC_MANAGER_H__


#include <stdint.h>


typedef void (*adc_manager_callback)(int8_t bit, uint8_t result);


void adc_manager_init(void);

// To avoid flickering, callback will be fired only when ADC measurement changes
// by at least min_change_to_report.
void adc_manager_start_measuring(int8_t bit, adc_manager_callback callback,
    uint8_t min_change_to_report);
void adc_manager_stop_measuring(int8_t bit);


#endif